package com.ruiysoft.entity.mdse;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2018-11-26
 */
@TableName("merchandise_picture_sku")
public class MerchandisePictureSku extends Model<MerchandisePictureSku> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商铺id
     */
    private Long shopid;

    /**
     * 商品skuid
     */
    @TableField("sku_id")
    private Long skuId;

    /**
     * 图片地址
     */
    private String path;

    /**
     * 排序
     */
    private Integer sort;

    @TableField("del_flag")
    private Integer delFlag;

    public Long getId() {
        return id;
    }

    public MerchandisePictureSku setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getShopid() {
        return shopid;
    }

    public MerchandisePictureSku setShopid(Long shopid) {
        this.shopid = shopid;
        return this;
    }
    public Long getSkuId() {
        return skuId;
    }

    public MerchandisePictureSku setSkuId(Long skuId) {
        this.skuId = skuId;
        return this;
    }
    public String getPath() {
        return path;
    }

    public MerchandisePictureSku setPath(String path) {
        this.path = path;
        return this;
    }
    public Integer getSort() {
        return sort;
    }

    public MerchandisePictureSku setSort(Integer sort) {
        this.sort = sort;
        return this;
    }
    public Integer getDelFlag() {
        return delFlag;
    }

    public MerchandisePictureSku setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MerchandisePictureSku{" +
        "id=" + id +
        ", shopid=" + shopid +
        ", skuId=" + skuId +
        ", path=" + path +
        ", sort=" + sort +
        ", delFlag=" + delFlag +
        "}";
    }
}
